package com.example.plus.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.plus.entity.TStudent;
import com.example.plus.mapper.TStudentMapper;
import com.example.plus.service.TStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Generated;
import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 会飞的小鱼儿
 * @since 2022-01-15
 */
@RestController
public class TStudentController {
    @Resource
    TStudentService  tStudentService;

    @Autowired
    TStudentMapper tStudentMapper;

    @RequestMapping("/hao")
    public Object hao(int sizenum,int Pagenum){
        Page page = new Page(Pagenum, sizenum);
        IPage pageData = tStudentService.page(page, null);
        return pageData;
    }


}
